-- GENERATED SPELL FOR [Drunken Footpad] --


function spell0_2440(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(13584,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2440', 603, 1)
end

function Sorts_2440(pUnit, Event)
local choix_sorts_2440 = math.random(0, 0)
if choix_sorts_2440 == 0 then
pUnit:RegisterEvent('spell0_2440', 1, 1)
end
end

function mob2440_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2440', math.random(1500, 3000), 1)
end

function mob2440_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2440_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2440_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2440, 1, 'mob2440_Action')
RegisterUnitEvent(2440, 2, 'mob2440_Leave')
RegisterUnitEvent(2440, 3, 'mob2440_Kill')
RegisterUnitEvent(2440, 4, 'mob2440_Die')
